package com.lee.springboot.start;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Lee
 * 用@Controller就得在方法上单独写@ResponseBody
 */
@Slf4j
@RestController
@RequestMapping("api/start")
public class StartController {
    @RequestMapping("execute01")
    public String execute01(){
        log.info("执行execute01()方法...");
        return "success";
    }

    @RequestMapping("execute02")
    public String execute02(){
        log.info("执行execute02()方法...");
        return "success";
    }
}
